<?php
if (!defined("_INDEX")) { header("Location: /"); die; }

if ($service_id = $route->getAdminId()){
	$db->sendQuery("delete from `providers` where `service_id` = '$service_id'");
	$db->sendQuery("delete from `services` where `service_id` = '$service_id' limit 1");
}

goToPage("/admin/services");
?>